.class public Lcom/nbi/map/data/Rect;
.super Ljava/lang/Object;


# instance fields
.field public h:I

.field public w:I

.field public x:I

.field public y:I


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->clear()V

    return-void
.end method

.method public constructor <init>(IIII)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput p1, p0, Lcom/nbi/map/data/Rect;->x:I

    iput p2, p0, Lcom/nbi/map/data/Rect;->y:I

    iput p3, p0, Lcom/nbi/map/data/Rect;->w:I

    iput p4, p0, Lcom/nbi/map/data/Rect;->h:I

    return-void
.end method

.method private static a(IIII)Z
    .locals 1

    const/4 v0, 0x1

    if-gt p0, p2, :cond_1

    if-lt p1, p3, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    if-le p1, p2, :cond_2

    if-le p1, p3, :cond_0

    :cond_2
    if-lt p0, p2, :cond_3

    if-lt p0, p3, :cond_0

    :cond_3
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public clear()V
    .locals 1

    const/4 v0, 0x0

    iput v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->w:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->h:I

    return-void
.end method

.method public contains(II)Z
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    if-gt v0, p1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    if-gt v0, p2, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v0, v1

    if-lt v0, p1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v0, v1

    if-lt v0, p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public contains(Lcom/nbi/map/data/Rect;)Z
    .locals 3

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->x:I

    if-gt v0, v1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    if-gt v0, v1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v0, v1

    iget v1, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v1, v2

    if-lt v0, v1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v0, v1

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v1, v2

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public copy()Lcom/nbi/map/data/Rect;
    .locals 5

    new-instance v0, Lcom/nbi/map/data/Rect;

    iget v1, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v2, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v3, p0, Lcom/nbi/map/data/Rect;->w:I

    iget v4, p0, Lcom/nbi/map/data/Rect;->h:I

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/nbi/map/data/Rect;-><init>(IIII)V

    return-object v0
.end method

.method public equals(IIII)Z
    .locals 1

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    if-ne v0, p1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    if-ne v0, p2, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->w:I

    if-ne v0, p3, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->h:I

    if-ne v0, p4, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public equals(Lcom/nbi/map/data/Rect;)Z
    .locals 4

    iget v0, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->w:I

    iget v3, p1, Lcom/nbi/map/data/Rect;->h:I

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;->equals(IIII)Z

    move-result v0

    return v0
.end method

.method public final getBottom()I
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v0, v1

    return v0
.end method

.method public final getHMiddle()I
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->w:I

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    return v0
.end method

.method public final getHeight()I
    .locals 1

    iget v0, p0, Lcom/nbi/map/data/Rect;->h:I

    return v0
.end method

.method public getIntersect(IIII)Lcom/nbi/map/data/Rect;
    .locals 5

    const/4 v2, 0x0

    invoke-virtual {p0, p1, p2, p3, p4}, Lcom/nbi/map/data/Rect;->intersects(IIII)Z

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getLeft()I

    move-result v0

    invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getTop()I

    move-result v1

    invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I

    move-result v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getRight()I

    move-result v2

    add-int v3, p1, p3

    invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I

    move-result v2

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getBottom()I

    move-result v3

    add-int v4, p2, p4

    invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I

    move-result v3

    new-instance v4, Lcom/nbi/map/data/Rect;

    sub-int/2addr v2, v0

    sub-int/2addr v3, v1

    invoke-direct {v4, v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;-><init>(IIII)V

    move-object v0, v4

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Lcom/nbi/map/data/Rect;

    invoke-direct {v0, v2, v2, v2, v2}, Lcom/nbi/map/data/Rect;-><init>(IIII)V

    goto :goto_0
.end method

.method public getIntersect(Lcom/nbi/map/data/Rect;)Lcom/nbi/map/data/Rect;
    .locals 4

    iget v0, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->w:I

    iget v3, p1, Lcom/nbi/map/data/Rect;->h:I

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;->getIntersect(IIII)Lcom/nbi/map/data/Rect;

    move-result-object v0

    return-object v0
.end method

.method public getIntersectArea(IIII)I
    .locals 5

    invoke-virtual {p0, p1, p2, p3, p4}, Lcom/nbi/map/data/Rect;->intersects(IIII)Z

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getLeft()I

    move-result v0

    invoke-static {v0, p1}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getTop()I

    move-result v1

    invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I

    move-result v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getRight()I

    move-result v2

    add-int v3, p1, p3

    invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I

    move-result v2

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getBottom()I

    move-result v3

    add-int v4, p2, p4

    invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I

    move-result v3

    sub-int v0, v2, v0

    sub-int v1, v3, v1

    mul-int/2addr v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getIntersectArea(Lcom/nbi/map/data/Rect;)I
    .locals 4

    iget v0, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->w:I

    iget v3, p1, Lcom/nbi/map/data/Rect;->h:I

    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;->getIntersectArea(IIII)I

    move-result v0

    return v0
.end method

.method public final getLeft()I
    .locals 1

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    return v0
.end method

.method public final getRight()I
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v0, v1

    return v0
.end method

.method public final getTop()I
    .locals 1

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    return v0
.end method

.method public final getVMiddle()I
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    return v0
.end method

.method public final getWidth()I
    .locals 1

    iget v0, p0, Lcom/nbi/map/data/Rect;->w:I

    return v0
.end method

.method public intersects(IIII)Z
    .locals 3

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v2, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v1, v2

    add-int v2, p1, p3

    invoke-static {v0, v1, p1, v2}, Lcom/nbi/map/data/Rect;->a(IIII)Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v1, v2

    add-int v2, p2, p4

    invoke-static {v0, v1, p2, v2}, Lcom/nbi/map/data/Rect;->a(IIII)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public intersects(Lcom/nbi/map/data/Rect;)Z
    .locals 5

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v2, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v1, v2

    iget v2, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v3, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v4, p1, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v3, v4

    invoke-static {v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;->a(IIII)Z

    move-result v0

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v1, v2

    iget v2, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v3, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v4, p1, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v3, v4

    invoke-static {v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;->a(IIII)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final isEmpty()Z
    .locals 1

    iget v0, p0, Lcom/nbi/map/data/Rect;->w:I

    if-nez v0, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->h:I

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public percentsToPixelsH(F)I
    .locals 4

    iget v0, p0, Lcom/nbi/map/data/Rect;->w:I

    int-to-double v0, v0

    const-wide/high16 v2, 0x4059

    div-double/2addr v0, v2

    float-to-double v2, p1

    mul-double/2addr v0, v2

    double-to-int v0, v0

    return v0
.end method

.method public percentsToPixelsV(F)I
    .locals 4

    iget v0, p0, Lcom/nbi/map/data/Rect;->h:I

    int-to-double v0, v0

    const-wide/high16 v2, 0x4059

    div-double/2addr v0, v2

    float-to-double v2, p1

    mul-double/2addr v0, v2

    double-to-int v0, v0

    return v0
.end method

.method public pointInRect(II)Z
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    if-gt v0, p1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v0, v1

    if-le v0, p1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    if-gt v0, p2, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v0, v1

    if-le v0, p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public reset()V
    .locals 1

    const/4 v0, 0x0

    iput v0, p0, Lcom/nbi/map/data/Rect;->h:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->w:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->x:I

    return-void
.end method

.method public final setRect(IIII)V
    .locals 0

    iput p1, p0, Lcom/nbi/map/data/Rect;->x:I

    iput p2, p0, Lcom/nbi/map/data/Rect;->y:I

    iput p3, p0, Lcom/nbi/map/data/Rect;->w:I

    iput p4, p0, Lcom/nbi/map/data/Rect;->h:I

    return-void
.end method

.method public final setRect(Lcom/nbi/map/data/Rect;)V
    .locals 1

    iget v0, p1, Lcom/nbi/map/data/Rect;->x:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v0, p1, Lcom/nbi/map/data/Rect;->y:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v0, p1, Lcom/nbi/map/data/Rect;->w:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->w:I

    iget v0, p1, Lcom/nbi/map/data/Rect;->h:I

    iput v0, p0, Lcom/nbi/map/data/Rect;->h:I

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "left"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getLeft()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " right="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getRight()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " width="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getWidth()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " height="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getHeight()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " top="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getTop()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " bottom="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nbi/map/data/Rect;->getBottom()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ". "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public union(Lcom/nbi/map/data/Rect;)Lcom/nbi/map/data/Rect;
    .locals 6

    iget v0, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->x:I

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    iget v1, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->y:I

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    iget v2, p0, Lcom/nbi/map/data/Rect;->x:I

    iget v3, p0, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v2, v3

    iget v3, p1, Lcom/nbi/map/data/Rect;->x:I

    iget v4, p1, Lcom/nbi/map/data/Rect;->w:I

    add-int/2addr v3, v4

    invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I

    move-result v2

    sub-int/2addr v2, v0

    iget v3, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v4, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v3, v4

    iget v4, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v5, p1, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v4, v5

    invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I

    move-result v3

    sub-int/2addr v3, v1

    new-instance v4, Lcom/nbi/map/data/Rect;

    invoke-direct {v4, v0, v1, v2, v3}, Lcom/nbi/map/data/Rect;-><init>(IIII)V

    return-object v4
.end method

.method public verticalContains(I)Z
    .locals 2

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    if-gt v0, p1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v0, v1

    if-lt v0, p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public verticalContains(Lcom/nbi/map/data/Rect;)Z
    .locals 3

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    if-gt v0, v1, :cond_0

    iget v0, p0, Lcom/nbi/map/data/Rect;->y:I

    iget v1, p0, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v0, v1

    iget v1, p1, Lcom/nbi/map/data/Rect;->y:I

    iget v2, p1, Lcom/nbi/map/data/Rect;->h:I

    add-int/2addr v1, v2

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
